<?php

namespace App\Console\Commands;

use App\Jobs\AgentsAccumulateAfterPlacingOrdersJob;
use Illuminate\Console\Command;

class RetryAfterPlacingOrdersJob extends Command
{
    /**
     * 命令名称及签名
     *
     * @var string
     */
    protected $signature = 'utils:retry_after_placing_orders_job {order_id}';

    /**
     * 命令描述
     *
     * @var string
     */
    protected $description = '重试下单后的统计 Job';

    public function handle()
    {
        dispatch((new AgentsAccumulateAfterPlacingOrdersJob($this->argument('order_id'))));
    }
}
